import { request } from '@umijs/max';

/** 登录接口 POST /api/login/account */
export async function login(body: any) {
  return request('/api/auth/login', {
    method: 'POST',
    data: body,
  });
}

export async function logout() {
  return request('/api/auth/logout', {
    method: 'POST',
  });
}
